<template>
  <div class="profile-box">
    <div class="profile-header">
      <ComNav :list="['个人中心']" />
    </div>

    <el-card shadow="hover" style="margin-top: 10px">
      <div class="info-box">
        <el-avatar :size="70" :src="tx" />
        <div class="info-main">
          <p class="info-title">cbeAdmin</p>
          <div class="person-info">
            <span>男</span>
            <span>管理员</span>
            <span>研发部</span>
          </div>
        </div>
      </div>
    </el-card>

    <el-card shadow="hover" style="margin-top: 10px">
      <div class="info-box">
        <el-avatar :size="70" :src="tx" />
        <div class="info-main">
          <p class="info-title">cbeAdmin</p>
          <div class="person-info">
            <span>男</span>
            <span>管理员</span>
            <span>研发部</span>
          </div>
        </div>
      </div>
    </el-card>
  </div>
</template>

<script setup lang="ts">
import {defineComponent} from "vue";
import ComNav from "@/components/comNav/index.vue";
import tx from '@/assets/images/profile.jpg'

defineComponent({name: 'NewProfile'})
</script>

<style scoped lang="scss">
.profile-box {
  width: 100%;
  height: 100%;

  .profile-header {
    width: 100%;
    padding: 20px 40px 10px;
    background-color: #fff;
  }

  .info-box {
    display: flex;
    align-items: center;
    padding-left: 135px;

    .info-main {
      margin-left: 66px;

      .info-title {
        margin-bottom: 10px;
        font-size: 16px;
        color: #2E3244;
        font-weight: 700;
        font-family: PingFangSC, PingFang SC;
      }

      .person-info {
        display: flex;
        font-size: 12px;
        color: #666;
        font-family: PingFangSC, PingFang SC;

        span {
          margin-right: 20px;
        }
      }
    }
  }
}
</style>
